package cn.iocoder.yudao.module.book.controller.admin.voice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 录音新增/修改 Request VO")
@Data
public class VoiceSaveReqVO {

    @Schema(description = "录音id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15926")
    private Integer voiceId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21014")
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13762")
    @NotNull(message = "绘本id不能为空")
    private Integer bookId;

    @Schema(description = "绘本音频", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "绘本音频不能为空")
    private String audioUrl;

    @Schema(description = "录音音频", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "录音音频不能为空")
    private String readingUrl;

    @Schema(description = "评分", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "评分不能为空")
    private Integer score;

}